import request from '@/utils/request'

// 查询延迟退宿申请列表
export function listApplication(data) {
  return request({
    url: '/dormitory/dms-delay-application/list?pageNum=' + data.pageNum + '&pageSize=' + data.pageSize,
    method: 'post',
    data
  })
}

// 查询延迟退宿申请详细
export function getApplication(id) {
  return request({
    url: '/dormitory/dms-delay-application/' + id,
    method: 'get'
  })
}

// 新增延迟退宿申请
export function addApplication(data) {
  return request({
    url: '/system/application',
    method: 'post',
    data: data
  })
}

// 修改延迟退宿申请
export function updateApplication(data) {
  return request({
    url: '/system/application',
    method: 'post',
    data: data
  })
}

// 删除延迟退宿申请
export function delApplication(id) {
  return request({
    url: '/system/application/' + id,
    method: 'post'
  })
}